﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="project_test" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <input type="button" class="btn" value="测试参数" />
        </div>
    </form>
    <script src="/scripts/jquery-1.10.1.min.js"></script>
</body>
</html>
<script>
    $(function () {
        $(".btn").click(function () {
            var d = new Array();
            d.push({ o: "1", c: "1001", p: { gold: "12", id_list: [1, 2, 3] } });
            d.push({ o: "2", c: "1002", p: { name: "qiu", sex: "female" } });

            $.ajax({
                url: "/handler/TestHandler.ashx?method=GetParam",
                type: "POST",
                data: {
                    u: "25234634",
                    t: "2",
                    s: "euiw4u353",
                    k: "wj3oij54jyt4#&43",
                    d: JSON.stringify(d)
                },
                success: function (re) {
                    console.log(re);
                }
            })
        })
    });
</script>
